//
//  S1mpl3HeadInfoView.m
//  沙哈拉FM
//
//  Created by dllo on 15/11/5.
//  Copyright © 2015年 S1mpl3. All rights reserved.
//

#import "S1mpl3HeadInfoView.h"
#import "FitHeader.h"



@implementation S1mpl3HeadInfoView

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self creatView];
    }
    return self;
}

-(void)creatView{
//    _pathCover = [[XHPathCover alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(CGRectMake(0, 0, 375 * FITWidth, 667 * FITHeight)), 250 * FITHeight)];
//    [self addSubview:_pathCover];
    
    _headImageView = [[UIImageView alloc] initWithFrame:CGRectMake(self.center.x, 64, 80 * FITHeight, 80 * FITHeight)];
    _headImageView.layer.masksToBounds = YES;
    _headImageView.layer.cornerRadius = 40 * FITHeight;
    [self addSubview:_headImageView];
    
    _titleLabel = [[BaseLabel alloc] initWithFrame:CGRectMake(80 * FITWidth, _headImageView.frame.origin.y + _headImageView.frame.size.height, 120 * FITHeight, 25)];
    [self addSubview:_titleLabel];
    
    _vImageView = [[UIImageView alloc] initWithFrame:CGRectMake(_titleLabel.frame.origin.x + _titleLabel.frame.size.width, _titleLabel.frame.origin.y, 26 * FITHeight, 26 * FITHeight)];
    _vImageView.layer.cornerRadius = 13 * FITHeight;
    _vImageView.layer.masksToBounds = YES;
    [self addSubview:_vImageView];
    
    _contentLabel = [[BaseLabel alloc] initWithFrame:CGRectMake(40 * FITWidth, _titleLabel.frame.origin.y + _titleLabel.frame.size.height, 200 * FITWidth, 20 * FITHeight)];
    [self addSubview:_contentLabel];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
